package dao;

import entity.Goods;

import java.util.List;

public interface GoodsDao {
    boolean insertGoods(Goods goods);
    boolean buyGoodsByGoodsName(String goodsName,Goods goods);
    boolean returnGoodsByGoodsName(String goodsName,Goods goods);
    boolean changeGoodsByGoodsName(String goodsName,Goods goods);
    boolean deleteGoodsByGoodsId(String goodsId);
    boolean updateGoodsById(String goodsId,Goods goods);
    List<Goods> selectGoodsById(String goodsId);
    List<Goods> selectAllGoods();
    Goods selectGoodsByGoodsName(String goodsName);
}


